package com.chen10.cattle.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 好友请求表
 * @TableName friend_requests
 */
@Data
public class FriendRequests implements Serializable {
    /**
     * 请求id
     */
    private Integer requestId;

    /**
     * 发送方id
     */
    private Integer senderId;

    /**
     * 接收方id
     */
    private Integer receiverId;

    /**
     * 状态 0 未处理 1 已接受 2 已拒绝
     */
    private String status;

    /**
     * 创建时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createdTime;

    /**
     * 处理时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date updatedTime;

    private static final long serialVersionUID = 1L;
}
